package com.mask.im.business.model.entity.chat;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 好友申请表实体
 * @author jian
 */
@Data
@TableName("im_friend_application")
@EqualsAndHashCode(callSuper = false)
public class IMFriendApplicationDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 申请人ID
     */
    @TableField("applicant_id")
    private Long applicantId;

    /**
     * 被申请人ID
     */
    @TableField("target_user_id")
    private Long targetUserId;

    /**
     * 申请语
     */
    @TableField("apply_message")
    private String applyMessage;

    /**
     * 申请状态：0=待处理，1=已通过，2=已拒绝，3=已过期
     */
    @TableField("apply_status")
    private Integer applyStatus;

    /**
     * 申请过期时间
     */
    @TableField("expire_time")
    private LocalDateTime expireTime;

    /**
     * 申请时间
     */
    @TableField("apply_time")
    private LocalDateTime applyTime;

    /**
     * 处理时间
     */
    @TableField("handle_time")
    private LocalDateTime handleTime;

    /**
     * 更新时间
     */
//    @TableField("update_time")
//    private LocalDateTime updateTime;
}
